package be.jhd.appserver.weblogic.deployer.command;

import be.jhd.appserver.DeployedArtifact;
import be.jhd.appserver.weblogic.command.WeblogicConfig;


public class UndeployCommand extends DeployerCommand{

	public UndeployCommand(String name) {
		super();
		add("name", name);
	}
	
	public UndeployCommand(DeployedArtifact artifact) {
		super();
		add("name", artifact.getDeployedName());
	}
	

	@Override
	protected void _addParameters(WeblogicConfig config) {
		add("undeploy");
		add("targets", config.getTargets());
	}

}
